package com.company.project.service.impl;

import com.company.project.dao.PeriodicalsDbMapper;
import com.company.project.model.PeriodicalsDb;
import com.company.project.service.PeriodicalsDbService;
import com.company.project.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
@Service
@Transactional
public class PeriodicalsDbServiceImpl extends AbstractService<PeriodicalsDb> implements PeriodicalsDbService {
    @Resource
    private PeriodicalsDbMapper periodicalsDbMapper;

    //添加期刊获取收录数据库
    @Override
    public List<PeriodicalsDb> adminGetPdP() {
        return periodicalsDbMapper.adminSelectPdP();
    }

    @Override
    public List<PeriodicalsDb> AllPeriodicalsDb() {
        return periodicalsDbMapper.AllPeriodicalsDb();
    }
}
